package Opertion;

import Book.BookList;

import java.nio.channels.NonWritableChannelException;

public class ExitBook  implements IOPertion{
    @Override
    public void operte(BookList bookList) {
        System.out.println("退出系统");
        int tem = bookList.NOW_BOOK_SIZE;
        for (int i = 0; i < bookList.NOW_BOOK_SIZE; i++) {
            bookList.books[i] = null;
        }
        bookList.NOW_BOOK_SIZE = 0;
        System.exit(0);
    }
}
